projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ed33e
)
(kbd): New macro.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 13 Apr 1997 08:08:11 +0000
(08:08 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 13 Apr 1997 08:08:11 +0000
(08:08 +0000)
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 656f02a1b304acf4b17616903e6144539c23e136..edd425d33e6134cbb7e925adb0c42b0ac4d9f4bc 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-226,6
+226,12
@@
The order of bindings in a keymap matters when it is used as a menu."
(setq inserted t)))
(setq tail (cdr tail)))))
+(defmacro kbd (keys)
+ "Convert KEYS to the internal Emacs key representation.
+KEYS should be a string constant in the format used for
+saving keyboard macros (see `insert-kbd-macro')."
+ (read-kbd-macro keys))
+
(put 'keyboard-translate-table 'char-table-extra-slots 0)
(defun keyboard-translate (from to)